import { cutFile } from './cutFile.js';

const inpFile = document.querySelector('input[type="file"]');

const TAG = 'cutFile';

inpFile.onchange = async (e) => {
    const file = e.target.files[0];
    console.time(TAG);
    const chunks = await cutFile(file);
    console.timeEnd(TAG);
    console.log(chunks);
};